package auctionhaus



import grails.test.mixin.*
import org.junit.*

/**
 * See the API for {@link grails.test.mixin.services.ServiceUnitTestMixin} for usage instructions
 */
@TestFor(CustomerService)
@Mock(Customer)
class CustomerServiceTests {

    void testCreateCustomer() {
        def customerService = new CustomerService()
        def alice = new Customer(emailAddress: 'alice@umn.edu', password: 'password')
        assert customerService.createCustomer(alice) == alice
    }
    void testCreateCustomerUnsuccessfull() {
        def customerService = new CustomerService()
        def alice = new Customer(emailAddress: 'alice@umn.edu', password: 'pass')
        assert customerService.createCustomer(alice) == "Unsuccessfull"
    }
}
